<template>
	<view class="recom-container">
		<view class="recom-title">
			<view class="line"></view>
			<slot></slot>
			<text class="title">{{title}}</text>
			<view class="line"></view>
		</view>
		<view class="recom-main">
			<recom-item v-for="(item,index) in recommList" :key="index" :item="item"></recom-item>
		</view>
	</view>
</template>

<script>
	export default {
		name:"home-recom",
		props:{
			recommList:{
				type:Array,
				default:()=>[]
			},
			title:{
				type:String,
				default:'默认标题'
			},
			icon:{
				type:String
			}
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss">
.recom-container{
		display: flex;
		flex-direction: column;
		width: 750rpx;
		.recom-title{
			@include flex-box(between,center,row)
			width: 100%;
			height: 100rpx;
			.aixin{
				font-size: 70rpx;
			}
			.title{
				font-weight: bold;
				font-size: 32rpx;
			}
			.line{
				width: 35%;
				height: 1rpx;
				background-color: #999;
			}
		}
		.recom-main{
			box-sizing: border-box;
			@include flex-box(between,start,row);
			flex-wrap: wrap;
			padding: 0 5rpx;
			width: 100%;
			flex-grow: 1;
		}
	}
</style>